import request from '@/utils/request'
import qs from 'qs'

/**
 * 专案资讯
 */
export function page(query) {
  return request({
    url: '/api/admin/project/query?' + qs.stringify(query),
    method: 'get'
  })
}

export function getBuSwitch(listId) {
  return request({
    url: '/api/admin/project/getBuSwitch',
    method: 'post',
    data: listId
  })
}

export function savaListProject(list) {
  return request({
    url: '/api/admin/project/savaListProject',
    method: 'post',
    data: list
  })
}

export function insertProject(list) {
  return request({
    url: '/api/admin/project/insertProject',
    method: 'post',
    data: list
  })
}

export function updateCompletion(list) {
  return request({
    url: '/api/admin/project/savaCompletion',
    method: 'post',
    data: list
  })
}



